home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / exit < prev    next >
Encoding:
Text File  |  2001-03-21  |  635 b   |  24 lines

  1. Synopsis:
  2.    on [<modes>]exit [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered when the client is about to exit normally (from
  6.    the QUIT command, etc.).  It is mostly useful for doing cleanup before
  7.    exiting, such as saving any current settings.  It cannot be used to
  8.    trap the QUIT command; the client will exit immediately after this
  9.    hook is triggered..
  10.  
  11. Parameters:
  12.    $0    always the string "Exiting"
  13.  
  14. Examples:
  15.    Save current settings before exiting:
  16.       on ^exit "*" {
  17.          save all
  18.          echo Now exiting ircII-${J}...
  19.       }
  20.  
  21. See Also:
  22.    exec(5); quit(1)
  23.  
  24.